﻿<UserControl x:Class="WinAutomator.Plugin.BuildIns.WAMessageBox"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
            xmlns:ignore="http://www.ignore.com"
            mc:Ignorable="d ignore"
            xmlns:vm="clr-namespace:WinAutomator.Plugin.BuildIns"
            xmlns:s="clr-namespace:WinAutomator.Plugin.BuildIns"
             xmlns:add="clr-namespace:WinAutomator.Plugin;assembly=WinAutomator.Plugin"
             d:DesignHeight="80" d:DesignWidth="150"
             Margin="{Binding Margin}">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary  Source="/WinAutomator.Plugin;component/Movable.xaml" />
                <ResourceDictionary>
                    <vm:ControlTestModelLocator x:Key="Locator" d:IsDataSource="True" />
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <UserControl.DataContext>
        <Binding Source="{StaticResource Locator}" Path="WAMessageBoxViewModel" />
    </UserControl.DataContext>

    <Canvas >
        <ContentControl Width="150"
                    MinWidth="150"
                    Height="80"
                    MinHeight="80"
                    Canvas.Top="0"
                    Canvas.Left="0"
                    Template="{StaticResource DesignerItemTemplate}">
            <Grid>
                <Rectangle Fill="Purple" IsHitTestVisible="False">
                </Rectangle>

                <add:WAConnector DataContext="{Binding ConnectorIn}" AnchorPoint="{Binding ConnectorIn.AnchorPoint}" ToolTip="In String" Height="Auto" InOut="Out" Margin="65,0,65,60" />
                <StackPanel/>
            </Grid>
        </ContentControl>
    </Canvas>
</UserControl>
